class CreateSentences < ActiveRecord::Migration
  def self.up
    create_table(:sentences, {:force => true, :options =>'ENGINE=InnoDB DEFAULT CHARSET=utf8'}) do |t|
      t.column :item_id,                  :integer, :null => false
      t.column :content,                  :string, :default => "", :null => false
      t.column :translate_content,        :string, :default => "", :null => false
      t.column :audio_path,               :string

      t.timestamps
    end
  end

  def self.down
    drop_table :sentences
  end
end
